<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/23
  Time: 1:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" import="sun.misc.BASE64Decoder" %>
<html>
<head>
    <title>验证码</title>
    <script type="text/javascript" src="script/jquery-3.2.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $("body").append("<input type=\"text\" value=\"${sessionScope.vc}\">");
            $("#but1").click(function () {
                $("#vc1").val("${sessionScope.vc}")
            });
        });
    </script>
</head>
<body>
<img src="/verifyCode/getVCode">
<input type="text" value="<%=  request.getAttribute("vc") %>">
<input type="button" id="but1">
<input type="text" id="vc1">

<form action="${pageContext.request.contextPath }/uploadImg" method="post" enctype="multipart/form-data"  >
    <input type="file" name="image"/>

    <input type="submit" value="upload">
</form>
</body>
</html>
